/*
 * jiyan1
 */
package com.jiyan.staff.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.staff.facade.StaffSV;
import com.jiyan.staff.dao.StaffDAO;
import com.jiyan.staff.entity.Staff;


/**
 * 员工信息
 * @author jiyan
 */
@Component
@Service
public class StaffSVImpl extends BaseMybatisSVImpl<Staff,Long> implements StaffSV{


	@Resource
	private StaffDAO staffDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return staffDAO;
	}


	/**
	 * 加载对象员工信息 通过code
	 * @param code 唯一编码
	 * @return Staff
	 */
     @Override
     public Staff loadByCode(java.lang.String code) {
		return staffDAO.loadByCode(code);
	 }
	/**
	 * 加载对象员工信息 通过jobnumber
	 * @param jobnumber 工号
	 * @return Staff
	 */
     @Override
     public Staff loadByJobnumber(java.lang.String jobnumber) {
		return staffDAO.loadByJobnumber(jobnumber);
	 }

     /**
      * 删除对象员工信息
	   * @param id * @param code 唯一编码* @param jobnumber 工号
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code,java.lang.String jobnumber) {
		staffDAO.delete(id,code,jobnumber);
	 }



}